﻿using System.Collections.Generic;

namespace MapDrawer
{
	public enum WayType
	{
		Unknow = 0,
		Road = 1,
		Building = 2,
	}


	public class JsonOsm
	{
		public double MinLon { get; set; }
		public double MinLat { get; set; }
		public double MaxLon { get; set; }
		public double MaxLat { get; set; }

		public List<JsonNode> Nodes { get; set; }
		public List<JsonWay> Ways { get; set; }

		public JsonOsm()
		{
			Nodes = new List<JsonNode>();
			Ways = new List<JsonWay>();
		}
	}

	public class JsonNode
	{
		public double Lat { get; set; }
		public double Lon { get; set; }
	}

	public class JsonWay
	{
		public WayType Type { get; set; }
		public List<JsonNode> Nodes { get; set; }

		public JsonWay()
		{
			Nodes = new List<JsonNode>();
		}
	}
}